<!DOCTYPE html>
<html><head>
	    <meta charset="utf-8">
    <title>果蔬农场</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__admin__/style/bootstrap.css" rel="stylesheet">
    <link href="__admin__/style/font-awesome.css" rel="stylesheet">
    <link href="__admin__/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__admin__/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__admin__/style/demo.css" rel="stylesheet">
    <link href="__admin__/style/typicons.css" rel="stylesheet">
    <link href="__admin__/style/animate.css" rel="stylesheet">
    
</head>
<body>
    <!-- 头部 -->
    {include file="common/head"}
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
            <!-- Page Sidebar -->
            {include file="common/left"}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="#">系统</a>
                    </li>
                                        <li>
                        <a href="#">产品管理</a>
                    </li>
                                        <li class="active">修改产品</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-header bordered-bottom bordered-blue">
                <span class="widget-caption">修改产品</span>
            </div>
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="id" value="{$course.id}">
                        <div class="form-group">
                            <label for="cor_name" class="col-sm-2 control-label no-padding-right">产品名称</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="cor_name" placeholder="" name="cor_name" required="" type="text" value="{$course.cor_name}">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>
                        <div class="form-group">
                            <label for="cate_id" class="col-sm-2 control-label no-padding-right">产品分类</label>
                            <div class="col-sm-6">
                                <select name="cate_id" id="">
                                    <option value="0">请选择</option>
                                    {volist name="cateRes" id="cate"}
                                        <option {if condition="$course['cate_id'] eq $cate['id']"} selected="selected" {/if} value="{$cate.id}">{$cate.cate_name}</option>
                                    {/volist}
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cor_pic" class="col-sm-2 control-label no-padding-right">产品封面</label>
                            <div class="col-sm-6">
                                <input type="file" name="cor_pic">
                                {if condition="$course['cor_pic']"}
                                    <img height="50" src="__uploads__/{$course.cor_pic}" alt="">
                                {else /}
                                    未上传封面
                                {/if}
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cor_author" class="col-sm-2 control-label no-padding-right">产品作者</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="cor_author" placeholder="" name="cor_author" required="" type="text" value="{$course.cor_author}">
                            </div>
                        </div>  
                        <div class="form-group">
                            <label for="cor_price" class="col-sm-2 control-label no-padding-right">产品价格</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="cor_price" placeholder="" name="cor_price" required="" type="text" value="{$course.cor_price}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cor_des" class="col-sm-2 control-label no-padding-right">产品描述</label>
                            <div class="col-sm-6">
                                <textarea id="content" name="cor_des">{$course.cor_des}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">保存信息</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__admin__/style/jquery_002.js"></script>
    <script src="__admin__/style/bootstrap.js"></script>
    <script src="__admin__/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__admin__/style/beyond.js"></script>
</body></html>